const TOKEN_KEY = 'geek_pc_token'
// /**
//  * 保存token
//  * @param {*} token
//  */
// export const setToken = (token) => {
//   localStorage.setItem(TOKEN_KEY, token)
// }
// export const removeToken = () => {
//   localStorage.removeItem(TOKEN_KEY)
// }
// export const getToken = () => {
//   localStorage.getItem(TOKEN_KEY)
// }
/**
 * 保存token
 * @param {*} token
 * @returns
 */
export const setToken = (token) => localStorage.setItem(TOKEN_KEY, token)

/**
 * 获取token
 * @returns token
 */
export const getToken = () => localStorage.getItem(TOKEN_KEY)

/**
 * 移除token
 * @returns
 */
export const removeToken = () => localStorage.removeItem(TOKEN_KEY)
/**
 * 判断是否有token
 * @returns
 */
export const hasToken = () => !!getToken()
// export { setToken, removeToken, getToken, hasToken }
